import request from "@/api/request";


// 发表评论
export function postRating(data) {
    return request({
        headers: {
            'content-type': 'application/x-www-form-urlencoded; charset=UTF-8'
        },
        method: "POST",
        url: "api/a/comment/rating/" ,
        data
    });
}

// 获取评论
export function getRating(id) {
    return request({
        method: "GET",
        url: "api/a/comment/rating/" + id ,
    });
}
